/*
 * TITLE:RequestBoardAnswer
 * AUTHOR:Manori Thakur
 * PURPOSE: Sends a request to game server to verify the correctness of the selected option by the player
 */
package clientrequest;

import java.util.Vector;

/**
 *
 * @author
 */
public class RequestBoardAnswer extends RequestToServer {
    private short question_id,selectedoption;

    @Override
    public void send(short requestCode, Vector args) {
        short sizeofrequest =(short)(8);
        this.question_id = ((Number)args.get(0)).shortValue();
        this.selectedoption = ((Number)args.get(1)).shortValue();
        super.writeShort(sizeofrequest);
        super.writeShort(requestCode);
        super.writeShort(question_id);
        super.writeShort(selectedoption);
    }

}
